<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"><!--Head-->
<head>
    <meta charset="utf-8">
    <title>后台登录</title>
    <meta name="description" content="login page">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <!--Basic Styles-->
    <link href="{{ asset('style/bootstrap.css') }}" rel="stylesheet">
    <link href="{{ asset('style/font-awesome.css') }}" rel="stylesheet">
    <!--Beyond styles-->
    <link id="beyond-link" href="{{ asset('style/beyond.css') }}" rel="stylesheet">
    <link href="{{ asset('style/demo.css') }}" rel="stylesheet">
    <link href="{{ asset('style/animate.css') }}" rel="stylesheet">
</head>
       <!--Head Ends-->
       <!--Body-->
<body>
    <div class="login-container animated fadeInDown">
        <form action="{{ route('admin.login') }}" method="post">
            @csrf
            <div class="loginbox bg-white">
                <div class="loginbox-title">登录 SIGN IN</div>
                <div class="loginbox-textbox">
                    <input class="form-control" placeholder="username" required oninvalid="setCustomValidity('请输入账户');" oninput="setCustomValidity('');" value="{{ old('username') }}" name="username" type="text">
                </div>
                <div class="loginbox-textbox">
                    <input class="form-control" placeholder="password" required oninvalid="setCustomValidity('请输入密码')" oninput="setCustomValidity('');" name="password" type="password">
                </div>
                @if($captcha_status == 1)
                <div class="loginbox-textbox">
                    <input class="form-control" placeholder="captcha" required maxlength="4" name="captcha" type="text">
                </div>
                <div class="loginbox-textbox">
                    <img src="{{ captcha_src('flat') }}" onclick="this.src='/index.php/captcha/flat?'+Math.random()" alt=""/>
                </div>
                @endif
                <div class="loginbox-submit">
                    <input class="btn btn-primary btn-block" value="Login" type="submit">
                </div>
            </div>

            @include('admin.common.error')
            @include('admin.common.msg')
            <div class="logobox">
                <p class="text-center">欢迎光临</p>
            </div>
        </form>
    </div>
    <!--Basic Scripts-->
    <script src="{{ asset('style/jquery-2.0.3.min.js') }}"></script>
    <script src="{{ asset('style/bootstrap.js') }}"></script>
    <!--Beyond Scripts-->
    <script src="{{ asset('style/beyond.js') }}"></script>
    <!--Beyond Scripts-->
</body><!--Body Ends-->
</html>
